]> dgit.raspbian.org Git - gnome-shell.git/commit
js: Mass move to Clutter.Event getter methods in Clutter.Actor vfuncs
authorCarlos Garnacho <carlosg@gnome.org>
Tue, 8 Aug 2023 16:14:04 +0000 (18:14 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Wed, 9 Aug 2023 11:46:08 +0000 (13:46 +0200)
commit8423ba44feddcf06404e10806e910dfba22f26d9
tree6508d2dfe77b3c32230897d603b98591153d59ae
parent5e36a06835587ea823bdd7241a9062dc12a288ce
js: Mass move to Clutter.Event getter methods in Clutter.Actor vfuncs

These traditionally got the various ClutterEvent subtype structs as their
argument, so it was not allowed to use ClutterEvent generic getter methods
in these vfuncs. These methods used direct access to struct fields instead.

This got spoiled with the move to make ClutterEvent opaque types, since
these are no longer public structs so GNOME Shell most silently failed to
fetch the expected values from event fields. But since they are not
ClutterEvents either, the getters could not be used on them.

Mutter is changing so that these vmethods all contain an alias to the
one and only Clutter.Event type, thus lifting those barriers, and making
it possible to use the ClutterEvent methods in these vfuncs.

Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/2950
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2872>
15 files changed:
js/gdm/authPrompt.js
js/ui/appDisplay.js
js/ui/ibusCandidatePopup.js
js/ui/layout.js
js/ui/lookingGlass.js
js/ui/messageList.js
js/ui/panel.js
js/ui/popupMenu.js
js/ui/runDialog.js
js/ui/screenshot.js
js/ui/shellMountOperation.js
js/ui/slider.js
js/ui/switcherPopup.js
js/ui/unlockDialog.js
js/ui/windowPreview.js